<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Rromise</title>
</head>
<body>

</body>
</html>
<script>
    new Promise((resolve,reject)=>{
        // reject("失败")
        resolve("成功")
    }).then((res=>{
        console.log(res,"res")
    }),(err)=>{
        console.log(err,"err")
    })
</script>